cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(3dcomplete-alb-luca)

#SET(CMAKE_CXX_COMPILER g++)
#FIND_PACKAGE(OpenCV REQUIRED)
find_package(PCL 1.4 REQUIRED)
find_package(Qt4 4.7 REQUIRED)
find_package(VTK)
include(${VTK_USE_FILE})
include(${QT_USE_FILE})
include_directories(${PCL_INCLUDE_DIRS} ${QT_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS} ${QT_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS} ${QT_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
SET(3dcomplete-alb-luca_RCS resource.qrc)
SET(3dcomplete-alb-luca_SOURCES main.cpp check.cpp ui.cpp pcqc.cpp registration.cpp componentMatch.cpp componentSelection.cpp component.cpp segmentDifferences.cpp ardoran.cpp)
SET(3dcomplete-alb-luca_HEADERS check.h ui.h pcqc.h registration.h componentMatch.h componentSelection.h component.h segmentDifferences.h ardoran.h)

QT4_WRAP_CPP(3dcomplete-alb-luca_HEADERS_MOC ${3dcomplete-alb-luca_HEADERS})
QT4_ADD_RESOURCES(3dcomplete-alb-luca_RC_SRCS ${3dcomplete-alb-luca_RCS})

add_executable (3dcomplete-alb-luca ${3dcomplete-alb-luca_SOURCES} ${3dcomplete-alb-luca_HEADERS_MOC} ${3d-ardoran_RC_SRCS})
target_link_libraries (3dcomplete-alb-luca ${PCL_LIBRARIES} ${QT_LIBRARIES} QVTK vtkHybrid)
